<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>AddMailRecipient</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">AddMailRecipient()</font></b></p>
<p><b>语法</b></p><blockquote>
<font color="#3A3966"><b>AddMailRecipient</b></font>(#Mail, Address$, Flags)</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Add a recipient to the specified mail. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Mail</i></td>
<td width="90%"> 
 
The mail to use. 

 

</td></tr>
<tr><td><i>Address$</i></td>
<td> 
 
The address of the recipient. It must be in a valid address format or the mail will 
not be sent correctly. 

 

</td></tr>
<tr><td><i>Flags</i></td>
<td> 
The categories to which to add the recipient. 可以是下列值的组合︰ 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_Mail_To</font> : Main(s) recipient(s) of the mail
  <font color="#924B72">#PB_Mail_Cc</font> : Recipient(s) which are in copy of the mail (and everybody see it)
  <font color="#924B72">#PB_Mail_Bcc</font>: Recipient(s) which are in copy of the mail (but nobody see it)
</font></pre>

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>
无.


</blockquote><p><b>示例</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2"><font color="#3A3966">  InitNetwork</font>()

  <b><font color="#3A3966">If</font></b> <font color="#3A3966">CreateMail</font>(0, "test@purebasic.com", "Hello")
<font color="#3A3966">    AddMailRecipient</font>(0, "andre@purebasic.com", <font color="#924B72">#PB_Mail_To</font>) <font color="#3A3966">; Andre is the main recipient</font>
<font color="#3A3966">    AddMailRecipient</font>(0, "fred@purebasic.com", <font color="#924B72">#PB_Mail_Cc</font>)  <font color="#3A3966">; Fred is in copy</font>
<font color="#3A3966">    AddMailRecipient</font>(0, "timo@purebasic.com", <font color="#924B72">#PB_Mail_Bcc</font>) <font color="#3A3966">; Timo is in copy as well, but Andre and Fred doesn't know it</font>
  <b><font color="#3A3966">EndIf</font></b>
</font></pre>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="removemailrecipient.html">RemoveMailRecipient()</a>, <a href="createmail.html">CreateMail()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=addmailattachmentdata.html>AddMailAttachmentData()</a> - <a href="index.html">Mail Index</a> - <a href="createmail.html">CreateMail()</a> -&gt;<br><br>

</body></html>